package com.enation.app.shop.front.policyInsurance.adminController.FileEnum;

public enum ClaimStatus {
    Commited(0,"待受理，待审核"),
    Site_survey(1,"定损拍照，现场查勘"),
    Over(2,"已完成"),
    NotAgree(3,"不受理");


    private final int value;

    private final String description;

    private ClaimStatus(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public static ClaimStatus from(int value) {
        for (ClaimStatus claimStatus:ClaimStatus.values()){
            if (claimStatus.value==value){
                return claimStatus;
            }
        }
        return null;
    }

    public int value(){
        return value;
    }
    @Override
    public String toString(){
        return description;
    }
}
